<!DOCTYPE html>
<html>
<head>
<include file="Include:meta" />
<title>前期沟通-目的地运营集团数据管理平台</title>
<include file="Include:style" />
</head>
<body style="background: #f3f3f3;">
<div class="header">
    <a class="menu_btn" href="javascript:;"><span class="sp1"></span><span class="sp2"></span><span class="sp3"></span></a>
	前期沟通
	<if condition="((((get_permission($qs,NULL,3)) and ($project['add_uid'] eq $login_id)) or (get_permission($qs,NULL,2) and (in_array($project['center_id'],$manage_id))) or (get_permission($qs,NULL,1))) or ($project['director_uid'] eq $login_id) or ($project['manager_uid'] eq $login_id)) and ($project['status'] eq 1)">
		<if condition="($project['gt_status'] eq NULL) or ($project['gt_status'] eq -1)">
			<a href="javascript:;" class="header_txt_btn jd_up" pid="{$project['id']}" action="gt_status" status="1">阶段完成</a>
		<elseif condition="($project['gt_status'] eq 1) and (($project['tp_status'] eq -1) or ($project['tp_status'] eq NULL))"/>
			<a href="javascript:;" class="header_txt_btn jd_down" pid="{$project['id']}" action="gt_status" status="-1">放弃完成</a>
		</if>
	</if>
</div>
<include file="Include:commu_menu" />
<div class="content">
	<if condition="$result eq NULL">
		<div class="no_data_list">
			暂无相关数据
		</div>
	</if>
    <div class="communicate_list">
        <ul>
			<foreach name="result" item="vo">
            <li <if condition="$vo['work_type'] eq '电话沟通'">class="gt_list"<elseif condition="$vo['work_type'] eq '发送资料'"/>class="fs_list"<elseif condition="$vo['work_type'] eq '接收资料'"/>class="js_list"<elseif condition="$vo['work_type'] eq '商务简报'"/>class="sw_list"<elseif condition="$vo['work_type'] eq '邮件沟通'"/>class="yj_list"</if>>
                <p class="tit">{$vo['work_type']}<span>|</span>{$vo['date']}<if condition="((((get_permission($qs,NULL,3)) and ($project['add_uid'] eq $login_id)) or (get_permission($qs,NULL,2) and (in_array($project['center_id'],$manage_id))) or (get_permission($qs,NULL,1))) or ($project['director_uid'] eq $login_id) or ($project['manager_uid'] eq $login_id)) and ($project['status'] eq 1)"><if condition="$project['gt_status'] neq 1"><a href="javascript:;" mid="{$vo['id']}" action="communicate_delete" class="btn icon_delete_btn"></a></if></if></p>
                <p>{$vo['remark']}</p>
            </li>
			</foreach>
        </ul>
		<if condition="((((get_permission($qs,NULL,3)) and ($project['add_uid'] eq $login_id)) or (get_permission($qs,NULL,2) and (in_array($project['center_id'],$manage_id))) or (get_permission($qs,NULL,1))) or ($project['director_uid'] eq $login_id) or ($project['manager_uid'] eq $login_id)) and ($project['status'] eq 1)">
			<if condition="$project['gt_status'] neq 1">
				<div class="build_btn paddbox"><div><a class="sub_btn" href="__APP__/Mobile/Project/project_communicate_add/id/{$project['id']}">新建</a></div></div>
			</if>
		</if>
    </div>
</div>
<include file="Include:javascript" />
<script>
    $(function(){
        menu();
        //删除
        $(".icon_delete_btn").ajaxModal({"body_text":"您确定要删除吗？","url":"__APP__/Mobile/Project/stage_ajax","data":{"id":"mid","action":"action"}});
		$(".jd_up").ajaxModal({"title_text":"完成提示框","body_text":"您确定要完成该阶段吗？","url":"__APP__/Mobile/Project/stage_ajax","data":{"id":"pid","action":"action","status":"status"}});
		$(".jd_down").ajaxModal({"title_text":"放弃提示框","body_text":"您确定要放弃该阶段吗？","url":"__APP__/Mobile/Project/stage_ajax","data":{"id":"pid","action":"action","status":"status"}});
    })
</script>
</body>
</html>